import { request } from "@ruifox-cms/utils";

//获取各留言表单下的留言数量和回复数量
export function getCount() {
  return request({
    url: "/comment/api/count/getCount",
    method: "get",
  });
}
//获取总留言和回复统计
export function getCommentAndReplyCount(data) {
  return request({
    url: "/comment/api/count/getCommentAndReplyCount",
    method: "post",
    data,
  });
}
//获取各留言表单下的留言数量和回复数量
export function getCountByCategoryIdOrTypeId() {
  return request({
    url: "/comment/api/count/getCountByCategoryIdOrTypeId",
    method: "get",
  });
}
//获取用户回复情况
export function getReplySituations(params) {
  return request({
    url: "/comment/api/count/getReplySituations",
    method: "get",
    params,
  });
}
//留言数据导出
export function exportCount(params) {
  return request({
    url: "/comment/api/count/export",
    method: "get",
    params,
    responseType: 'blob'
  });
}
